<?php

use yii\helpers\Html;
use yii\helpers\ArrayHelper;

?>
<?= Html::hiddenInput('id', $role_id, ['id' => 'role_id']) ?>
<table id="tableEditRoleFunctionPoint" class="table">
	<thead>
		<th>功能</th>
		<th>权限</th>
	</thead>
	<tbody>
		<?php foreach ($function_point_list as $function => $right_list): ?>
		<tr>
			<th><?= $function ?></th>
			<td>
				<?= Html::checkboxList('function_point_list', $function_point_id, ArrayHelper::map($right_list, 'id', 'name')) ?>
			</td>
		</tr>
		<?php endforeach;?>
	</tbody>
</table>
